package com.scau.hwadee.examination;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author YHX
 * @date 2019/7/22 9:48
 */
@SpringBootApplication
@EnableSwagger2
@MapperScan("com.scau.hwadee.examination.mapper")
@Slf4j
public class ExaminationApplication {

  public static void main(String[] args) {
    SpringApplication.run(ExaminationApplication.class, args);
  }

//  @Bean
//  public WebServerFactoryCustomizer<ConfigurableWebServerFactory> webServerFactoryCustomizer() {
//    return factory -> {
//      log.debug("come to 404 error page");
//      ErrorPage error404Page = new ErrorPage(HttpStatus.NOT_FOUND, "/index.html");
//      factory.addErrorPages(error404Page);
//    };
//  }
}
